/** @format */

const mainMap = [
  {
    path: '',
    redirect: { name: 'Index' },
  },
  {
    path: '/layout',
    name: 'Layout',
    component: () => import('../views/layout/Index.vue'),
  },
  {
    path: '/index',
    name: 'Index',
    meta: {
      title: '首页',
      icon: 'HomeFilled',
      useHideBreadcrumb: true,
    },
    component: () => import('../views/index/Index.vue'),
  },

  {
    path: '/404',
    name: 'NotFound',
    hidden: true,
    meta: { title: '404' },
    component: () => import('../components/NotFound.vue'),
  },
  {
    path: '/:w+',
    hidden: true,
    redirect: { name: 'NotFound' },
  },
];

const routes = [...mainMap];

export { routes };
